#!/bin/bash
set -e

# 重新加载systemd配置
systemctl daemon-reload

# 启用服务（但不自动启动）
systemctl enable dip6.service

echo "dip6服务已安装并启用。"
echo "使用以下命令管理服务："
echo "  启动服务: sudo systemctl start dip6"
echo "  停止服务: sudo systemctl stop dip6"
echo "  查看状态: sudo systemctl status dip6"
